package com.lqs.blog.vo.param;

import lombok.Data;

@Data
public class PageParams {
    private int page = 1;//页码数
    private int pageSize = 10;//显示数据量
    private Long tagId;
    private Long categoryId;
    private String year;
    private String month;

    public String getMonth() {
        if (this.month != null && this.month.length() == 1) {
            return "0" + this.month;
        } else {
            return this.month;
        }
    }
}
